package com.example.gateway.designPattern.observer;

/**
 * @ClassName: User
 * @Description:
 * @Author: YourName
 * @Date: 2024/12/31
 */

public class User implements Observer{

    private String name;
    private String message;

    public User(String name) {
        this.name = name;
    }
    @Override
    public void update(String message) {
        System.out.println(name + " Received push message： " + message);

    }
}
